package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单主对象 order_main
 * 
 * @author ruoyi
 * @date 2025-11-11
 */
public class OrderMain extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 订单号（唯一） */
    @Excel(name = "订单号", readConverterExp = "唯=一")
    private String orderNo;

    /** 生产订单号 */
    @Excel(name = "生产订单号")
    private String productionOrderNo;

    /** 客户ID（逻辑关联customer.id） */
    @Excel(name = "客户ID", readConverterExp = "逻=辑关联customer.id")
    private String customerId;

    /** 订单日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderDate;

    /** 订单类型（销售/采购/打样等） */
    @Excel(name = "订单类型", readConverterExp = "销=售/采购/打样等")
    private String orderType;

    /** 业务员 */
    @Excel(name = "业务员")
    private String salesman;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }

    public void setProductionOrderNo(String productionOrderNo) 
    {
        this.productionOrderNo = productionOrderNo;
    }

    public String getProductionOrderNo() 
    {
        return productionOrderNo;
    }

    public void setCustomerId(String customerId) 
    {
        this.customerId = customerId;
    }

    public String getCustomerId() 
    {
        return customerId;
    }

    public void setOrderDate(Date orderDate) 
    {
        this.orderDate = orderDate;
    }

    public Date getOrderDate() 
    {
        return orderDate;
    }

    public void setOrderType(String orderType) 
    {
        this.orderType = orderType;
    }

    public String getOrderType() 
    {
        return orderType;
    }

    public void setSalesman(String salesman) 
    {
        this.salesman = salesman;
    }

    public String getSalesman() 
    {
        return salesman;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderNo", getOrderNo())
            .append("productionOrderNo", getProductionOrderNo())
            .append("customerId", getCustomerId())
            .append("orderDate", getOrderDate())
            .append("orderType", getOrderType())
            .append("salesman", getSalesman())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
